import 'package:flutter/material.dart';
import 'package:flutter_test_demo/pages/home/Home.dart';
import 'package:flutter_test_demo/pages/search/SearchPage.dart';
import 'package:flutter_test_demo/pages/start_page/StartPage.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: StartPage(),
      routes: <String, WidgetBuilder>{
        '/home': (BuildContext context) => Home(), //主页
        '/search': (BuildContext context) => SearchPage()

      },
    );
  }
}